<?php

return [
    // 默认磁盘
    'default' => 'local',
    'img'     => [
        'fileSize' => 10485760,
        'fileExt'  => 'jpg,gif,jpeg,png',
        'fileMime' => 'image/jpeg,image/gif,image/png,image/jpg',
    ],
    'video'   => [
        'fileSize' => 20971520,
        'fileExt'  => 'mp4',
        'fileMime' => 'video/mp4,application/octet-stream,video/webm,video/ogg',
    ],
    'file'    => [
        'fileSize' => 20971520,
        'fileExt'  => '',
        'fileMime' => '',
    ],
    // 磁盘列表
    'disks'   => [
        'local'  => [
            // 磁盘类型
            'type'       => 'local',
            // 磁盘路径
            'root'       => getDirectory().'public/storage',
            // 可见性
            'visibility' => 'public',
        ],
        'aliyun' => [
            'type'          => 'aliyun',
            'access_id'     => '',
            'access_secret' => '',
            'bucket'        => '',
            'endpoint'      => '',
            'isCName'       => true,
            'cdnUrl'        => '',
            'prefix'        => '',
            'options'       => [
                'endpoint'        => '',
                'bucket_endpoint' => '',
            ],
        ],
        'qiniu'  => [
            'type'       => 'qiniu',
            'access_key' => 'JSebC2MFK6dFnYr9z8WB75S4l0D2KCjpzBJQ2vHp',
            'secret_key' => '-gl-gRyMN7jugeTK019ZBzjwEQu0hjjqHIpOv6HQ',
            'bucket'     => 'jianliao',
            'domain'     => 'http://qnjl.98104.cn',
        ],
        'qcloud' => [
            'type'            => 'qcloud',
            'region'          => '', //bucket 所属区域 英文
            'app_id'          => '', // 域名中数字部分
            'secret_id'       => '',
            'secret_key'      => '',
            'bucket'          => '',
            'timeout'         => 0,
            'connect_timeout' => 0,
            'cdn'             => '',
            'scheme'          => '',
            'read_from_cdn'   => false,
        ],
    ],
];
